use actix_web::{get, web, HttpResponse};
use std::fs;

#[get("/")]
pub async fn index() -> HttpResponse {
    let body = web::Bytes::from(fs::read("index.html").unwrap());
    HttpResponse::Ok()
        .content_type("text/html")
        .body(body)
}
